[INFO] cloning repository https://github.com/amalnathsathyan/rust-lessons
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/amalnathsathyan/rust-lessons" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famalnathsathyan%2Frust-lessons", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famalnathsathyan%2Frust-lessons'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 02a6b46f5fef27139a2db500cca000ceb51d4e40
[INFO] fixing amalnathsathyan/rust-lessons against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famalnathsathyan%2Frust-lessons" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/amalnathsathyan/rust-lessons
[INFO] finished tweaking git repo https://github.com/amalnathsathyan/rust-lessons
[INFO] tweaked toml for git repo https://github.com/amalnathsathyan/rust-lessons written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/amalnathsathyan/rust-lessons on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/amalnathsathyan/rust-lessons already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 98008f8ecf8a969a5bdc72acdf23cdaa9cc62cac4a6404b780df29d996f5c06e
[INFO] running `Command { std: "docker" "start" "98008f8ecf8a969a5bdc72acdf23cdaa9cc62cac4a6404b780df29d996f5c06e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "98008f8ecf8a969a5bdc72acdf23cdaa9cc62cac4a6404b780df29d996f5c06e" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "98008f8ecf8a969a5bdc72acdf23cdaa9cc62cac4a6404b780df29d996f5c06e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "98008f8ecf8a969a5bdc72acdf23cdaa9cc62cac4a6404b780df29d996f5c06e" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking hello-rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: function `f` is never used
[INFO] [stdout]   --> src/my/mod.rs:13:4
[INFO] [stdout]    |
[INFO] [stdout] 13 | fn f() {
[INFO] [stdout]    |    ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]   --> src/bin/borrow.rs:63:20
[INFO] [stdout]    |
[INFO] [stdout] 63 | fn f(s: String) -> &String {
[INFO] [stdout]    |                    ^ expected named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout]    = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
[INFO] [stdout] help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`
[INFO] [stdout]    |
[INFO] [stdout] 63 | fn f(s: String) -> &'static String {
[INFO] [stdout]    |                     +++++++
[INFO] [stdout] help: instead, you are more likely to want to change the argument to be borrowed...
[INFO] [stdout]    |
[INFO] [stdout] 63 | fn f(s: &String) -> &String {
[INFO] [stdout]    |         +
[INFO] [stdout] help: ...or alternatively, you might want to return an owned value
[INFO] [stdout]    |
[INFO] [stdout] 63 - fn f(s: String) -> &String {
[INFO] [stdout] 63 + fn f(s: String) -> String {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0505]: cannot move out of `s` because it is borrowed
[INFO] [stdout]   --> src/bin/borrow.rs:55:20
[INFO] [stdout]    |
[INFO] [stdout] 44 |     let s = String::from("Rust");
[INFO] [stdout]    |         - binding `s` declared here
[INFO] [stdout] 45 |     let s1 = &s;
[INFO] [stdout]    |              -- borrow of `s` occurs here
[INFO] [stdout] ...
[INFO] [stdout] 55 |     std::mem::drop(s);
[INFO] [stdout]    |                    ^ move out of `s` occurs here
[INFO] [stdout] 56 |     //here refernce is outliving the value s
[INFO] [stdout] 57 |     println!("{s1}");
[INFO] [stdout]    |                -- borrow later used here
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 45 |     let s1 = &s.clone();
[INFO] [stdout]    |                ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0106, E0505.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0106`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `hello-rust` (bin "borrow" test) due to 2 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: function `f` is never used
[INFO] [stdout]   --> src/my/mod.rs:13:4
[INFO] [stdout]    |
[INFO] [stdout] 13 | fn f() {
[INFO] [stdout]    |    ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]   --> src/bin/borrow_string_str.rs:23:18
[INFO] [stdout]    |
[INFO] [stdout] 23 | fn make_str() -> &str {
[INFO] [stdout]    |                  ^ expected named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout]    = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
[INFO] [stdout] help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`
[INFO] [stdout]    |
[INFO] [stdout] 23 | fn make_str() -> &'static str {
[INFO] [stdout]    |                   +++++++
[INFO] [stdout] help: instead, you are more likely to want to return an owned value
[INFO] [stdout]    |
[INFO] [stdout] 23 - fn make_str() -> &str {
[INFO] [stdout] 23 + fn make_str() -> String {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0106`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `hello-rust` (bin "borrow_string_str") due to 1 previous error
[INFO] running `Command { std: "docker" "inspect" "98008f8ecf8a969a5bdc72acdf23cdaa9cc62cac4a6404b780df29d996f5c06e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "98008f8ecf8a969a5bdc72acdf23cdaa9cc62cac4a6404b780df29d996f5c06e", kill_on_drop: false }`
[INFO] [stdout] 98008f8ecf8a969a5bdc72acdf23cdaa9cc62cac4a6404b780df29d996f5c06e
